74 WDT_A_hold(WDT_A_BASE);
84 GPIO_setAsPeripheralModuleFunctionInputPin(
91 UCS_turnOnLFXT1(UCS_XT1_DRIVE_3,
96 currentTime.Seconds = 0x00;
97 currentTime.Minutes = 0x26;
98 currentTime.Hours = 0x13;
99 currentTime.DayOfWeek = 0x03;
100 currentTime.DayOfMonth = 0x20;
101 currentTime.Month = 0x07;
102 currentTime.Year = 0x2011;
110 RTC_A_initCalendar(RTC_A_BASE,
116 RTC_A_configureCalendarAlarmParam
param = {0};
117 param.minutesAlarm = 0x00;
118 param.hoursAlarm = 0x17;
119 param.dayOfWeekAlarm = RTC_A_ALARMCONDITION_OFF;
120 param.dayOfMonthAlarm = 0x05;
121 RTC_A_configureCalendarAlarm(RTC_A_BASE, &
param);
124 RTC_A_setCalendarEvent(RTC_A_BASE,
125 RTC_A_CALENDAREVENT_MINUTECHANGE);
130 RTC_A_clearInterrupt(RTC_A_BASE,
131 RTCRDYIFG + RTCTEVIFG + RTCAIFG);
132 RTC_A_enableInterrupt(RTC_A_BASE,
133 RTCRDYIE + RTCTEVIE + RTCAIE);
136 RTC_A_startClock(RTC_A_BASE);
139 __bis_SR_register(LPM3_bits + GIE);
143 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
144 #pragma vector=RTC_VECTOR
146 #elif defined(__GNUC__)
147 __attribute__((interrupt(RTC_VECTOR)))
151 switch (__even_in_range(RTCIV,16)){
155 GPIO_toggleOutputOnPin(
164 newTime = RTC_A_getCalendarTime(RTC_A_BASE);
MPU_initThreeSegmentsParam param
volatile Calendar newTime